<html>
<head>
<title>index page</title>
</head>
<body>
	<form action = "login_handler.php" method = "post">
		Username: <input id = "username" name = "username" /> <br/>
		Password: <input id = "password" name = "password" type = "password"> <br/>
		<?php 
			session_start();
			if(isset($_SESSION['message'])){
				echo $_SESSION['message'];
				$_SESSION['message'] = '';
			} 
		?>
		<input type = "submit" name = "login" value = "Log"/>
		<input type = "button" name = "register" value = "Register" onclick = "window.location.href = 'register.php';"/>
	</form>
</body>
</html>